<section>
    <div ng-if="!list">加载中....</div>
    <div class="panel panel-default">
        <div class="panel-heading clearfix form-inline">
            <div class="pull-right">
                客户列表
                <select class="form-control" ng-model="parm.address" style="">
                    <option ng-selected="true" value="">-- 选择所在区 --</option>
                    <option value="蜀山区">蜀山区</option>
                    <option value="包河区">包河区</option>
                    <option value="庐阳区">庐阳区</option>
                    <option value="瑶海区">瑶海区</option>
                    <option value="政务区">政务区</option>
                    <option value="经开区">经开区</option>
                    <option value="高新区">高新区</option>
                    <option value="滨湖新区">滨湖新区</option>
                    <option value="新站区">新站区</option>
                </select>
                <input type="text" ng-model="parm.storeName_like" class="form-control">
                <button type="button" class="btn btn-default" ng-click="search()">搜索</button>
            </div>
        </div>

        <table class="table table-bordered panel-body table-condensed ">
            <thead>
            <tr>
                <th width="5%">#</th>
                <th width="20%">姓名</th>
                <th width="15%">所属区</th>
                <th width="25%">详细地址</th>
                <th width="10%">联系人</th>
                <th width="15%">联系人电话</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in list" ng-click="chose(item.customerId,item.storeName)">
                <td>
                    {{item.customerId}}
                </td>
                <td>
                    {{item.storeName}}
                </td>
                <td>
                    {{item.address}}
                </td>
                <td>
                    {{item.addressDetail}}
                </td>
                <td>
                    {{item.managerName}}
                </td>
                <td>
                    {{item.phone}}
                </td>
            </tr>
            </tbody>
        </table>
        <div class="panel-footer text-center">
            <uib-pagination style="margin:0;" ng-change="pageChanged(parm.currentPage)" total-items="parm.totalSize" ng-model="parm.currentPage"
                            items-per-page="parm.pageSize" max-size="5" class="pagination-sm" boundary-links="true"
                            rotate="false"></uib-pagination>
        </div>
    </div>
</section>
